To be able to edit code and run cells, you need to run the notebook yourself. Where would you like to run the notebook?

This notebook takes about 20 seconds to run.

In the cloud (experimental)

Binder is a free, open source service that runs scientific notebooks in the cloud! It will take a while, usually 2-7 minutes to get a session.

On your computer

(Recommended if you want to store your changes.)

  1. Copy the notebook URL:
  2. Run Pluto

    (Also see: How to install Julia and Pluto)

  3. Paste URL in the Open box

Frontmatter

If you are publishing this notebook on the web, you can set the parameters below to provide HTML metadata. This is useful for search engines and social media.

Author 1

Homework 0: test

Submission by: Bob Doe (bob@mit.edu)

👀 Reading hidden code
37.7 ms
👀 Reading hidden code
student = (name="Bob Doe", email="bob@mit.edu", number=2)
20.1 μs
👀 Reading hidden code
67.0 μs
👀 Reading hidden code
65.2 μs

Exercise 1

Give a number larger than 100:

👀 Reading hidden code
230 μs
60
👀 Reading hidden code
big_number = 60
10.0 μs
👀 Reading hidden code
66.6 μs

Exercise 2

Write a function that checks whether a number is positive:

👀 Reading hidden code
208 μs
ispositive (generic function with 1 method)
👀 Reading hidden code
function ispositive(x)
return x > 0
end
381 μs
👀 Reading hidden code
65.5 μs
👀 Reading hidden code
64.3 μs